

module rs_ff (s,r,q,qb);
  output q,qb;
  input  r,s;
  nand #1 (q,r,qb);
  nand #(1, 2) (qb,s,q);
endmodule
